#ifndef DOWNLOADCENTER_H
#define DOWNLOADCENTER_H

#include <QWidget>

namespace Jcr
{
class DownloadCenterPrivate;
class DownloadCenter : public QWidget
{
    Q_OBJECT
public:
    explicit DownloadCenter(QWidget *parent = 0);
    ~DownloadCenter();

public slots:
    void download(const QUrl& url);
    void download(const QUrl &url, const QString& saveName, const QString& saveDir);

private slots:
    void addUrl();
    void clearFinished();
    void clearAll();

private:
    void init();

private:
    DownloadCenterPrivate* d_ptr;
    Q_DISABLE_COPY(DownloadCenter)
};

} // namespace
#endif // DOWNLOADCENTER_H
